<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of MilestonesList
 *
 * @author agama
 */
class MilestonesList extends ResourceList
{

    protected $project;

    function __construct()
    {
        parent::__construct( 'milestone', 50, 'main_milestone=m.id', 'm.updated' );
    }

    function setProject( $t )
    {
        $this->project = $t;
    }

    function fill()
    {
        $this->andWhere( 'project=' . $this->project );
        parent::fill();
    }

}

?>
